import matplotlib.pyplot as plt


def plot(x):
    plt.figure()
    for i in x:
        a = []
        b = []
        a.append(i[0])
        b.append(0)
        a.append(i[0])
        b.append(i[2])
        a.append(i[1])
        b.append(i[2])
        a.append(i[1])
        b.append(0)
        plt.plot(a, b)
    plt.show()


t2 = [[6, 15, 9], [72, 79, 16], [7, 13, 12], [9, 11, 14], [17, 24, 7],  [19, 22, 4], [17, 22, 10], [24, 28, 7], [31, 39, 12], [42, 57, 15], [41, 44, 15], [54, 60, 12], [58, 60, 5], [35, 43, 8]]
plot(t2)

# t = [[0,5,7],[5,10,7],[5,10,12],[10,15,7],[15,20,7],[15,20,12],[20,25,7]]

# class Building(object):
#     def __init__(self):
#         print("building init")
#         self.build_floor()
#         self.build_size()
#
#     def build_floor(self):
#         print("building build floor")
#         raise NotImplementedError
#
#     def build_size(self):
#         print("building build size")
#         raise NotImplementedError
#
#     def __repr__(self):
#         return 'Floor: {0.floor} | Size: {0.size}'.format(self)
#
#
# # Concrete Buildings
# class House(Building):
#     def build_floor(self):
#         print("house build foor")
#         self.floor = 'One'
#
#     def build_size(self):
#         print("house build size")
#         self.size = 'Big'
#
# house = House()
# print(house)